<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: apps/point_cloud_editor/include/pcl/apps/point_cloud_editor/copyCommand.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('copy_command_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">copyCommand.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="copy_command_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#ifndef COPY_COMMAND_H_</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#define COPY_COMMAND_H_</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="command_8h.html">pcl/apps/point_cloud_editor/command.h</a>&gt;</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="local_types_8h.html">pcl/apps/point_cloud_editor/localTypes.h</a>&gt;</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="copy_buffer_8h.html">pcl/apps/point_cloud_editor/copyBuffer.h</a>&gt;</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_copy_command.html">   48</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_copy_command.html">CopyCommand</a> : <span class="keyword">public</span> <a class="code" href="class_command.html">Command</a></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;{</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_copy_command.html#afcfaf07015d944beb79f6fd908842bbf">   55</a></span>&#160;    <a class="code" href="class_copy_command.html#afcfaf07015d944beb79f6fd908842bbf">CopyCommand</a> (<a class="code" href="local_types_8h.html#aaf826fa8d4266d9e1d76c4095fbfd55f">CopyBufferPtr</a> copy_buffer_ptr,</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;                 <a class="code" href="local_types_8h.html#a9593545ca38af82dfae060606c43a0f2">ConstSelectionPtr</a> selection_ptr,</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                 <a class="code" href="local_types_8h.html#aad5f0c82cf4c260ee8aac89a5cb65808">ConstCloudPtr</a> cloud_ptr)</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;      : <a class="code" href="class_copy_command.html#a1d4555bf2cef6b905c1c289453a65099">copy_buffer_ptr_</a>(copy_buffer_ptr), <a class="code" href="class_copy_command.html#adbd5843980a2b3f54a72143369bc0cea">selection_ptr_</a>(selection_ptr),</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <a class="code" href="class_copy_command.html#a2972824c0528983d63693dabdcce817d">cloud_ptr_</a>(cloud_ptr)</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    {</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;      <a class="code" href="class_command.html#a6524158d3dd197cef746c64cd0e079e0">has_undo_</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    }</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="class_copy_command.html#ab4a7ddc50d1f93ccf14a0af8fa728598">   65</a></span>&#160;    <a class="code" href="class_copy_command.html#ab4a7ddc50d1f93ccf14a0af8fa728598">~CopyCommand</a> ()</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    {</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    }</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;  </div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="class_copy_command.html#af69f904c6589f31cb8fcbeee1249edf1">   74</a></span>&#160;    <a class="code" href="class_copy_command.html#af69f904c6589f31cb8fcbeee1249edf1">execute</a> ()</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    {</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;      <span class="keywordflow">if</span> (!<a class="code" href="class_copy_command.html#a2972824c0528983d63693dabdcce817d">cloud_ptr_</a>)</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;      <a class="code" href="class_copy_command.html#a1d4555bf2cef6b905c1c289453a65099">copy_buffer_ptr_</a> -&gt; set(<a class="code" href="class_copy_command.html#a2972824c0528983d63693dabdcce817d">cloud_ptr_</a>, *<a class="code" href="class_copy_command.html#adbd5843980a2b3f54a72143369bc0cea">selection_ptr_</a>);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    }</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keywordtype">void</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="class_copy_command.html#ada5d739a5d36270ad2258a6061784702">   83</a></span>&#160;    <a class="code" href="class_copy_command.html#ada5d739a5d36270ad2258a6061784702">undo</a> ()</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    {</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;      assert(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    }</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160; </div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;  <span class="keyword">private</span>:</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="class_copy_command.html#a0a68661c8cc775aa76a4d803d4a3c364">   90</a></span>&#160;    <a class="code" href="class_copy_command.html#a0a68661c8cc775aa76a4d803d4a3c364">CopyCommand</a> ()</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    {</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;      assert(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;    }</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="class_copy_command.html#a34e377052e370eee3bd7e6ee289e71d6">   96</a></span>&#160;    <a class="code" href="class_copy_command.html#a34e377052e370eee3bd7e6ee289e71d6">CopyCommand</a> (<span class="keyword">const</span> <a class="code" href="class_copy_command.html">CopyCommand</a>&amp;)</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    {</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;      assert(<span class="keyword">false</span>);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    }</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <a class="code" href="class_copy_command.html">CopyCommand</a>&amp;</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="class_copy_command.html#ab8357f83b9f5c6242bd3fc6efb120a93">  103</a></span>&#160;    <a class="code" href="class_copy_command.html#ab8357f83b9f5c6242bd3fc6efb120a93">operator= </a>(<span class="keyword">const</span> <a class="code" href="class_copy_command.html">CopyCommand</a>&amp;)</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    {</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;      assert(<span class="keyword">false</span>); <span class="keywordflow">return</span> (*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    }</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="class_copy_command.html#a1d4555bf2cef6b905c1c289453a65099">  109</a></span>&#160;    <a class="code" href="local_types_8h.html#aaf826fa8d4266d9e1d76c4095fbfd55f">CopyBufferPtr</a> <a class="code" href="class_copy_command.html#a1d4555bf2cef6b905c1c289453a65099">copy_buffer_ptr_</a>;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="class_copy_command.html#adbd5843980a2b3f54a72143369bc0cea">  112</a></span>&#160;    <a class="code" href="local_types_8h.html#a9593545ca38af82dfae060606c43a0f2">ConstSelectionPtr</a> <a class="code" href="class_copy_command.html#adbd5843980a2b3f54a72143369bc0cea">selection_ptr_</a>;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="class_copy_command.html#a2972824c0528983d63693dabdcce817d">  115</a></span>&#160;    <a class="code" href="local_types_8h.html#aad5f0c82cf4c260ee8aac89a5cb65808">ConstCloudPtr</a> <a class="code" href="class_copy_command.html#a2972824c0528983d63693dabdcce817d">cloud_ptr_</a>;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;};</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">#endif </span><span class="comment">//COPY_COMMAND_H_</span></div>
<div class="ttc" id="aclass_command_html"><div class="ttname"><a href="class_command.html">Command</a></div><div class="ttdoc">The abstract parent class of all the command classes. Commands are non-copyable.</div><div class="ttdef"><b>Definition:</b> command.h:50</div></div>
<div class="ttc" id="aclass_command_html_a6524158d3dd197cef746c64cd0e079e0"><div class="ttname"><a href="class_command.html#a6524158d3dd197cef746c64cd0e079e0">Command::has_undo_</a></div><div class="ttdeci">bool has_undo_</div><div class="ttdoc">a flag indicates whether the command has an undo function.</div><div class="ttdef"><b>Definition:</b> command.h:88</div></div>
<div class="ttc" id="aclass_copy_command_html"><div class="ttname"><a href="class_copy_command.html">CopyCommand</a></div><div class="ttdef"><b>Definition:</b> copyCommand.h:49</div></div>
<div class="ttc" id="aclass_copy_command_html_a0a68661c8cc775aa76a4d803d4a3c364"><div class="ttname"><a href="class_copy_command.html#a0a68661c8cc775aa76a4d803d4a3c364">CopyCommand::CopyCommand</a></div><div class="ttdeci">CopyCommand()</div><div class="ttdoc">Default constructor - object is not default constructable</div><div class="ttdef"><b>Definition:</b> copyCommand.h:90</div></div>
<div class="ttc" id="aclass_copy_command_html_a1d4555bf2cef6b905c1c289453a65099"><div class="ttname"><a href="class_copy_command.html#a1d4555bf2cef6b905c1c289453a65099">CopyCommand::copy_buffer_ptr_</a></div><div class="ttdeci">CopyBufferPtr copy_buffer_ptr_</div><div class="ttdoc">a pointer to the copy buffer.</div><div class="ttdef"><b>Definition:</b> copyCommand.h:109</div></div>
<div class="ttc" id="aclass_copy_command_html_a2972824c0528983d63693dabdcce817d"><div class="ttname"><a href="class_copy_command.html#a2972824c0528983d63693dabdcce817d">CopyCommand::cloud_ptr_</a></div><div class="ttdeci">ConstCloudPtr cloud_ptr_</div><div class="ttdoc">a shared pointer pointing to the cloud</div><div class="ttdef"><b>Definition:</b> copyCommand.h:115</div></div>
<div class="ttc" id="aclass_copy_command_html_a34e377052e370eee3bd7e6ee289e71d6"><div class="ttname"><a href="class_copy_command.html#a34e377052e370eee3bd7e6ee289e71d6">CopyCommand::CopyCommand</a></div><div class="ttdeci">CopyCommand(const CopyCommand &amp;)</div><div class="ttdoc">Copy constructor - commands are non-copyable</div><div class="ttdef"><b>Definition:</b> copyCommand.h:96</div></div>
<div class="ttc" id="aclass_copy_command_html_ab4a7ddc50d1f93ccf14a0af8fa728598"><div class="ttname"><a href="class_copy_command.html#ab4a7ddc50d1f93ccf14a0af8fa728598">CopyCommand::~CopyCommand</a></div><div class="ttdeci">~CopyCommand()</div><div class="ttdoc">Destructor</div><div class="ttdef"><b>Definition:</b> copyCommand.h:65</div></div>
<div class="ttc" id="aclass_copy_command_html_ab8357f83b9f5c6242bd3fc6efb120a93"><div class="ttname"><a href="class_copy_command.html#ab8357f83b9f5c6242bd3fc6efb120a93">CopyCommand::operator=</a></div><div class="ttdeci">CopyCommand &amp; operator=(const CopyCommand &amp;)</div><div class="ttdoc">Equal operator - commands are non-copyable</div><div class="ttdef"><b>Definition:</b> copyCommand.h:103</div></div>
<div class="ttc" id="aclass_copy_command_html_ada5d739a5d36270ad2258a6061784702"><div class="ttname"><a href="class_copy_command.html#ada5d739a5d36270ad2258a6061784702">CopyCommand::undo</a></div><div class="ttdeci">void undo()</div><div class="ttdoc">undo is not supported for this command.</div><div class="ttdef"><b>Definition:</b> copyCommand.h:83</div></div>
<div class="ttc" id="aclass_copy_command_html_adbd5843980a2b3f54a72143369bc0cea"><div class="ttname"><a href="class_copy_command.html#adbd5843980a2b3f54a72143369bc0cea">CopyCommand::selection_ptr_</a></div><div class="ttdeci">ConstSelectionPtr selection_ptr_</div><div class="ttdoc">a shared pointer pointing to the selection</div><div class="ttdef"><b>Definition:</b> copyCommand.h:112</div></div>
<div class="ttc" id="aclass_copy_command_html_af69f904c6589f31cb8fcbeee1249edf1"><div class="ttname"><a href="class_copy_command.html#af69f904c6589f31cb8fcbeee1249edf1">CopyCommand::execute</a></div><div class="ttdeci">void execute()</div><div class="ttdoc">Copy the selected points into the copy buffer.</div><div class="ttdef"><b>Definition:</b> copyCommand.h:74</div></div>
<div class="ttc" id="aclass_copy_command_html_afcfaf07015d944beb79f6fd908842bbf"><div class="ttname"><a href="class_copy_command.html#afcfaf07015d944beb79f6fd908842bbf">CopyCommand::CopyCommand</a></div><div class="ttdeci">CopyCommand(CopyBufferPtr copy_buffer_ptr, ConstSelectionPtr selection_ptr, ConstCloudPtr cloud_ptr)</div><div class="ttdoc">Constructor</div><div class="ttdef"><b>Definition:</b> copyCommand.h:55</div></div>
<div class="ttc" id="acommand_8h_html"><div class="ttname"><a href="command_8h.html">command.h</a></div></div>
<div class="ttc" id="acopy_buffer_8h_html"><div class="ttname"><a href="copy_buffer_8h.html">copyBuffer.h</a></div></div>
<div class="ttc" id="alocal_types_8h_html"><div class="ttname"><a href="local_types_8h.html">localTypes.h</a></div></div>
<div class="ttc" id="alocal_types_8h_html_a9593545ca38af82dfae060606c43a0f2"><div class="ttname"><a href="local_types_8h.html#a9593545ca38af82dfae060606c43a0f2">ConstSelectionPtr</a></div><div class="ttdeci">boost::shared_ptr&lt; const Selection &gt; ConstSelectionPtr</div><div class="ttdef"><b>Definition:</b> localTypes.h:83</div></div>
<div class="ttc" id="alocal_types_8h_html_aad5f0c82cf4c260ee8aac89a5cb65808"><div class="ttname"><a href="local_types_8h.html#aad5f0c82cf4c260ee8aac89a5cb65808">ConstCloudPtr</a></div><div class="ttdeci">boost::shared_ptr&lt; const Cloud &gt; ConstCloudPtr</div><div class="ttdef"><b>Definition:</b> localTypes.h:76</div></div>
<div class="ttc" id="alocal_types_8h_html_aaf826fa8d4266d9e1d76c4095fbfd55f"><div class="ttname"><a href="local_types_8h.html#aaf826fa8d4266d9e1d76c4095fbfd55f">CopyBufferPtr</a></div><div class="ttdeci">boost::shared_ptr&lt; CopyBuffer &gt; CopyBufferPtr</div><div class="ttdoc">The type for boost shared pointer pointing to a copy buffer</div><div class="ttdef"><b>Definition:</b> localTypes.h:86</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_9654b8d08f4bba4e84b362c5fd320bee.html">apps</a></li><li class="navelem"><a class="el" href="dir_b812044310263d1df0acdcc34fa78063.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="dir_e7676f72fdf944a58a9890202aea4fdd.html">include</a></li><li class="navelem"><a class="el" href="dir_f36a0c0a6789487b19709622e8aaedff.html">pcl</a></li><li class="navelem"><a class="el" href="dir_dfd6ef21606ddfa5cd0b7ee0903ae9ec.html">apps</a></li><li class="navelem"><a class="el" href="dir_4eea226eade4b66d41c153c54681c108.html">point_cloud_editor</a></li><li class="navelem"><a class="el" href="copy_command_8h.html">copyCommand.h</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
